//
//  MyInfoFooterView.m
//  Mtime2.0
//
//  Created by 凉气的Mac on 16/9/23.
//  Copyright © 2016年 凉气的Mac. All rights reserved.
//

#import "MyInfoFooterView.h"

#import "UIButton+Extension.h"

@implementation MyInfoFooterView


-(instancetype)initWithFrame:(CGRect)frame{
    
    if (self = [super initWithFrame:frame]) {
        
        //设置界面
        [self setupUI];
        
    }
    return self;
}

#pragma mark --
#pragma mark --设置界面
-(void)setupUI{
    
    UIButton *logoutBtn = [UIButton creatWithTitle:@"退出登录" color:[UIColor whiteColor] fontSize:17];
    
    [self addSubview:logoutBtn];
    
    [logoutBtn setBackgroundColor:[UIColor redColor]];
    
    logoutBtn.layer.cornerRadius = 20;
    
    logoutBtn.clipsToBounds = YES;
    
    [logoutBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.center.equalTo(self);
        
        make.height.equalTo(@40);
        
        make.left.equalTo(self).offset(40);
        
        make.right.equalTo(self).offset(-40);
        
    }];
    
}



 
 
@end
